/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package spelet;

import java.awt.Graphics;
import java.awt.Rectangle;
import java.util.List;

/**
 *
 * @author Tom
 */
public abstract class Entity {
    int scrollPosition;
    public int position_x, position_y;
    public String type;
    public Rectangle box;
    public Sprite s;
    public int group=0;


    public abstract void draw(Graphics g);

    public abstract void moveX(int x);

    public abstract void moveY(int y);

    public Rectangle collisionBox() {

        box = new Rectangle(position_x, position_y, s.getWidth(), s.getHeight());
        return box;
    }

}
